package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_work_apply")
public class WorkApplyModel {
    @TableId(type = IdType.AUTO)
    public int id;
    public int publishId;//职位id
    public int customerId;//用户id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    public Timestamp crtTime;//创建时间

    private Integer isHire;//1已雇佣
    @TableField(exist = false)
    public List<JobPublishModel> jobPublishList;
    @TableField(exist = false)
    public List<CustomerModel> customerList;//需要联查的类
    @TableField(exist = false)
    EnterpriseModel enterpriseModel;//需要联查的类
    @TableField(exist = false)
    public String formatTime;
    @TableField(exist = false)
    public CustomerModel customer;
    @TableField(exist = false)
    public JobPublishModel jobPublish;
    @TableField(exist = false)
    private Integer intermediaryId;

    public int eId;
    public int zId;
    private Integer publishType;//1公司岗位2中介岗位

    @TableField(exist = false)
    private Integer count;
    @TableField(exist = false)
    private String  enterpriseName;
    @TableField(exist = false)
    private String jobTitle;
    @TableField(exist = false)
    private String comName;
    @TableField(exist = false)
    private String realName;
    @TableField(exist = false)
    private String faceUrl;
    @TableField(exist = false)
    private Integer limit;

    @TableField(exist = false)
    private Integer page;



}
